<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/h-ui/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/h-ui/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/h-ui/h-ui.admin/skin/default/skin.css"/>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/h-ui/h-ui.admin/css/style.css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/dtree/dtree.css"/>
<script src="${pageContext.request.contextPath}/static/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/dtree/dtree.js"></script>

    <!-- 展示所有的模块树  -->
	<script type="text/javascript">
		  $(function(){
				 refreshDtree();
			 })
				
			 //生成模块树
			 function refreshDtree(){
				 
				 d = new dTree("d","${pageContext.request.contextPath}");
				 d.add("0",-1,"系统模块树");
				 d.add("1","0","全部","javascript:refreshRight('')");
				 $("#tree").html(d.toString()); 

				 //通过异步请求获取所有的模块信息，并将数据填充至dTree插件中显示
			/* 	 $.ajax({
					 type:"post",
					 url:"${ctx}/identity/module/ajaxLoadAllModule.jspx",
					 dataType:"json",
					// async:true,
					 success:function(data){
						 $.each(data,function(){
							 d.add(this.id,this.pid,this.name,"javascript:refreshRight('"+this.id+"')",this.name);
						 })
						 
						 //将dTree树放在 id为tree的div中
						 $("#tree").html(d.toString()); 
						 
					 },error:function(){
						 alert("数据加载异常！");
					 }
					 
					 
				 }) */
				
			 }
	
			 //刷新页面右侧
			/*  function refreshRight(code){
				$("#sonModules").attr("src","${ctx}/identity/module/getModulesByParent.jspx?code="+code);
			 } */ 
     				
	</script>
</head>
    <body >
		<div id="tree" data-options="region:'west'" title="菜单模块树" style="width:20%;padding:10px">
			
		</div>
		
		<div data-options="region:'center'" title="模块菜单"  >
		     <!-- 展示当前模块下的子模块  -->
		    <%--  <iframe src="${ctx}/identity/module/getModulesByParent.jspx" frameborder="0" id="sonModules"  width="100%" height="100%" ></iframe> --%>
		</div>
 
<script type="text/javascript" src="${pageContext.request.contextPath}/static/h-ui/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/h-ui/h-ui/js/H-ui.min.js"></script> 
<script type="text/javascript" src="${pageContext.request.contextPath}/static/h-ui/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer /作为公共模版分离出去-->


	</body>
</html>
